package edu.bw.config;

import org.springframework.context.annotation.*;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.TransactionManager;

import javax.sql.DataSource;
import java.sql.Connection;

@Configuration
@ComponentScan("edu.bw")
@EnableAspectJAutoProxy
@Import(DBConfig.class)
public class SpringConfig {
    @Bean("threadLocal")
    public ThreadLocal<Connection> threadLocal() {
        return new ThreadLocal<Connection>();
    }

}

